<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../back-common.jsp"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
	    <script type="text/javascript">
	        function pager(curPageNO){
	        	 //直接下一页
	    		document.getElementById("curPageNO").value=curPageNO;
			    document.getElementById("form1").submit(); 
	        }
	        
	      function toRightQueryPage(){
	        	window.location.href='${contextPath}/admin/member/role/query';
	        }
	    </script>
	<%
			Long offset = (Long)request.getAttribute("offset");
	%>	
	<form:form  action="${contextPath}/admin/member/role/loadUserByRole" id="form1" method="post">
        <table class="${tableclass}" style="width: 100%">
	    <thead>
	    	<tr>
	    	   		<th><strong class="am-text-primary am-text-lg">权限管理</strong> /  权限角色</th>
	    	   </tr>
	    </thead>
	     <tbody><tr><td>
	      <div align="left" style="padding: 3px">
				    <input type="hidden" id="curPageNO" name="curPageNO" value="<%=request.getAttribute("curPageNO")%>">
				      <input type="hidden" id="roleId" name="roleId" value="<%=request.getAttribute("roleId")%>">
							&nbsp; 真名
							<input class="${inputclass}" type="text" name="userName" maxlength="50" value="${userName}" />
							<input class="${btnclass}" type="submit" value="搜索"/>&nbsp;&nbsp;
							
				 </div>
	      </td></tr></tbody>
	    </table>
	</form:form>
	 <div align="center">
        <%@ include file="/WEB-INF/pages/common/messages.jsp"%>
    <display:table name="list" requestURI="#"  id="item" export="false" class="${tableclass}" style="width:100%">
      <display:column title="顺序"  class="orderwidth"><%=offset++%></display:column>
      <display:column title="真名 " property="realName" sortable="true"></display:column>
      <display:column title="用户名 " property="name" sortable="true"></display:column>
      <display:column title="状态">
      		<ls:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.enabled}" defaultDisp=""/>
      </display:column>
      <display:column title="备注" property="note"></display:column>
      
    </display:table>
        <ls:page pageSize="${pageSize }"  total="${total}" curPageNO="${curPageNO }"  type="default"/> 
        
        <input class="${btnclass}" type="button" value="返回" onclick="javascript:toRightQueryPage()"/>
    </div>
